<?php
    // Send Header
    $xls->setHeader('Reporte_'.date('Y_m_d').'.xls');

    // XLS Data Cell
    $xls->BOF();
    $xls->writeLabel(1,0,"VENETEL");
    $xls->writeLabel(2,0,"Reporte de Clientes : ");

    $xls->writeLabel(4,0,"Nombre del Cliente");
    $xls->writeLabel(4,1,"RIF del cliente");
    $xls->writeLabel(4,2,"ID");


	$x = 5;
	$y = 0;

	foreach ($clientes as $cliente){
    $xls->writeLabel($x, $y++, $cliente['Cliente']['nm_cliente']);
    $xls->writeLabel($x, $y++, $cliente['Cliente']['RIF_cliente']);
    $xls->writeLabel($x, $y++, $cliente['Cliente']['id']);
	$x++;
		if($y === 3) {
			$y = 0;
		}
	}

    $xls->EOF();
    exit();
?>